<?php
 $_FANWE['CACHE_CSS_SCRIPT_PHP'] = array (
  'script' => 
  array (
    0 => 
    array (
      0 => './public/js/jquery.cookie.js',
      1 => './public/js/jquery.easing.js',
      2 => './public/js/jquery.lazyload.js',
      3 => './public/js/base.js',
    ),
    1 => 
    array (
      0 => './public/js/jquery.dragsort.js',
      1 => './public/js/json.js',
      2 => './public/js/base64.js',
      3 => './public/js/lang.js',
      4 => './public/js/setting.js',
      5 => './public/js/jquery.ui.js',
      6 => './public/js/jquery.bgiframe.js',
      7 => './public/js/jquery.weebox.js',
      8 => './public/js/ajaxfileupload.js',
      9 => './public/js/swfobject.js',
    ),
    2 => './public/js/jquery.masonry.js',
  ),
  'css' => 
  array (
    0 => 
    array (
      0 => './tpl/css/reset.css',
      1 => './tpl/css/base.css',
      2 => './tpl/css/globe.css',
      3 => './tpl/css/publishbox.css',
      4 => './tpl/css/lightbox.css',
      5 => './tpl/css/addfav.css',
      6 => './public/js/jqueryui/jquery.ui.css',
    ),
    1 => 
    array (
      0 => './tpl/css/general.css',
      1 => './tpl/css/book.css',
    ),
  ),
);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><title>晒货-DIYgw</title>
		<meta name="keywords" content="晒货,DIYgw晒货,DIYgw" />
		<meta name="description" content="欢迎访问DIYgw晒货频道，看看时尚达人们2012年都喜欢什么宝贝" /><link rel="icon" href="/fanwe/favicon.ico" type="image/x-icon" />
<script src="./public/js/jquery.js" type="text/javascript"></script>
<script src="./public/data/tpl/js/755ec6d94afb092ff6fa6ce67bd26038.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./public/data/tpl/css/dd881924bc977bf4114273c2a13af058.css" media="all"/><link rel="stylesheet" type="text/css" href="./public/data/tpl/css/1665b80043a32764ce31f85542f20420.css" />
<script type="text/javascript">
var SITE_PATH = '/fanwe/';
var SITE_URL = 'http://localhost/fanwe/';
var TPL_PATH = '/fanwe/tpl/pink2/';
var PUBLIC_PATH	 = '/fanwe/public/';
var MODULE_NAME	 = 'Look';
var ACTION_NAME	 = 'index';
var COOKIE_PRE = "01Eg_2132_";<!--dynamic dynamicScript--></script>
<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=" type="text/javascript"></script>
<script type="text/javascript">
        jQuery(function(){
        $(window).scroll(function(){
            if($(window).scrollTop() > 39){
               $("#nav_bar").css({"position":"fixed"});
               $("#nav_bar").css({"width":"100%"});
               $("#nav_bar").css({"z-index":"9999"});
               $("#nav_bar").css({"top":"0"});
            }else{
                $("#nav_bar").css({"position":"relative"});
            }
            
        });
        });
        </script>
</head>
<body>
<div id="head">
<div id="info_bar">
<div class="fm960">
<div class="fl">
<a href="/fanwe/index.php?action=index"><img class="logo fl" src="/fanwe/./logo.gif" /></a>
</div><!--dynamic getUserInfo--></div>
</div>
<div id="nav_bar">
<div class="fm960">
<ul class="fl">
<li class="f"><a href="/fanwe/index.php?action=index">首页</a></li>
<li><a href="/fanwe/book.php?action=shopping">逛街啦！</a></li>
<li><a href="/fanwe/album.php?action=index">杂志社</a></li>
<li><a href="/fanwe/look.php?action=index" class="c">晒货</a></li>
<li><a href="/fanwe/dapei.php?action=index">搭配</a></li>
<li><a href="/fanwe/group.php?action=index">小组</a></li>
<li><a href="/fanwe/daren.php?action=index">达人</a></li>
<li><a href="/fanwe/shop.php?action=index">好店</a></li>
<li><a href="/fanwe/exchange.php?action=index">试用</a></li>
                                        <li><a href="/fanwe/mailrss.php?action=index">订阅</a></li>
</ul>
                            <div class="fast_share"><a href="javascript:;" onclick="$.Fast_Share();">分享</a></div>
                           
<div class="fr top_search r5">
                                    
<form action="/fanwe/search.php?action=index" method="get">
<input type="text" name="keyword" class="ts_txt" value="" tooltip="请输入关键字"/>
<input type="submit" value=" " class="ts_btn" />
</form>
</div>

</div>
</div>
</div>
<div style="margin:0 auto;width:960px"><!--dynamic advLayoutName args=头部广告位,,--></div>
<div id="body_wrap"><div class="piece1 mt10 wrapper">
<div class="piece1_hd"></div>
<div class="piece1_bd">
<div class="dapei_nav">
<a class="dapei_link fl look_current">精彩晒货</a>
<a href="/fanwe/u.php?action=me" class="fr look_link ">我要晒</a>
<span class="fr show_with_them ">我就喜欢晒！做最喜欢的自己！</span>
</div>
<ul class="look_show clearfix"></ul>                  
</div>
<div class="piece1_ft"></div>
</div>
<div class="wrapper book_sort">
<div class="bs_sort" style="padding-left:0;">
<ul class="mr10">
<li class="bs_l">
<a class="c" href="/fanwe/look.php?action=index">
<i></i>
<span title="全部搭配">全部晒货</span>
</a>
</li>
<li class="bs_r">
<a href="/fanwe/look.php?action=index&type=goods">
<span title="网购实拍">网购实拍</span>
<i></i>
</a>
</li>
</ul>
<strong>排序：</strong>
<ul>
<li class="bs_l">
<a class="c" href="/fanwe/look.php?action=index&sort=hot1">
<i></i>
<span>今日最热</span>
</a>
</li>
<li class="bs_c">
<a href="/fanwe/look.php?action=index&sort=hot7">
<span>本周最热</span>
<i></i>
</a>
</li>
<li class="bs_r">
<a href="/fanwe/look.php?action=index&sort=new">
<span>最新</span>
<i></i>
</a>
</li>
</ul>
</div>
</div>
<div class="wrapper book_box">
<div class="book_list" id="book_list">
<div class="book_item">
<div class="bi_body">
<div class="book_daren_nav">
<b>晒货达人</b>
</div>
<ul class="book_daren_list"></ul>
</div>
<div class="bi_foot"></div>
</div></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="pbLoading" style="background:url(./tpl/images/loading.gif) no-repeat center center;height:52px; display:none;"></div>
<div class="hide">
</div>
<script type="text/javascript">
FANWE.NO_COUNTER = true;
var rowHtml = '<div class="book_item"><div class="bi_body" style="height:#HEIGHT#px;"></div><div class="bi_foot"></div></div>';
var pbUrl = "/fanwe/services/service.php?m=share&a=look&sort=hot1&page=1&pindex=_pindex_";
var imgWidth = 200;
var pbMaxIndex = 10;

jQuery(function(){<!--dynamic getShareByUserClickShareID--><!--dynamic getManageDynamic args=book_look-->$(".book_img").each(function(){
var oldWidth = parseInt(this.getAttribute("oldWidth"));
var oldHeight = parseInt(this.getAttribute("oldHeight"));
if(isNaN(oldWidth) || isNaN(oldHeight) || oldWidth == 0 || oldHeight == 0)
{
this.height = 0;
}
else
{
var scale = imgWidth / oldWidth;
this.height = oldHeight * scale;
}
});

$('#book_list').css({"height":"auto","background":"none","overflow":"visible"});
$('.book_item').css("visibility","visible");

$('#book_list').masonry({
itemSelector: '.book_item',
isAnimated:true,
gutterWidth:18,
gutterHeight:12,
columnWidth:226
});
createPBScroll(pbUrl,appendShareItem,pbLoadingFun,2,pbMaxIndex,300);
});

function appendBottomItem()
{
var lefts = new Object();
var colTotal = 4;
$(".book_item").each(function(i){
if($(this).position().top == 0)
{
lefts['l'+$(this).position().left] = $(this);
}
else
{
if(lefts['l'+$(this).position().left].position().top <  $(this).position().top)
lefts['l'+$(this).position().left] = $(this);
}
});

var cols = 0;
var maxLeft = '';
var currentSize = 0;
var maxSize = 0;
for(var left in lefts)
{
cols++;
currentSize = lefts[left].position().top + lefts[left].height();
if(currentSize > maxSize)
{
maxLeft = left;
maxSize = currentSize;
}
}

var htmlArray = new Array();
var htmlObjs = new Object();
html = '';
for(var left in lefts)
{
currentSize = lefts[left].position().top + lefts[left].height();
if(currentSize < maxSize)
{
htmlObjs['h'+(maxSize - currentSize)] = rowHtml.replace("#HEIGHT#",maxSize - currentSize - 20);
htmlArray.push(maxSize - currentSize);
}
}

var newArray = htmlArray.sort(function(a,b){
if(a > b)
return -1;
else if(a < b)
return 1;
else
return 0;
});

for(var h=0;h<newArray.length;h++)
{
html += htmlObjs['h'+newArray[h]];
}

if(colTotal > cols)
{
for(var i=0; i< (colTotal - cols);i++)
{
html = rowHtml.replace("#HEIGHT#",maxSize - 20) + html;
}
}
html = $('<div>' + html + '</div>').find('.book_item');
$('#book_list').append(html).masonry('appended',html,true);
}

function appendShareItem(result,index)
{
html = '<div>' + result + '</div>';
    html = $(html).find('.book_item');
$(".book_img",html).each(function(){
var oldWidth = parseInt(this.getAttribute("oldWidth"));
var oldHeight = parseInt(this.getAttribute("oldHeight"));
if(isNaN(oldWidth) || isNaN(oldHeight) || oldWidth == 0 || oldHeight == 0)
{
this.height = 0;
}
else
{
var scale = imgWidth / oldWidth;
this.height = oldHeight * scale;
}
});
$('#book_list').append(html).masonry('appended',html,true,function(){
if(index >= pbMaxIndex || result == '')
{
$("#pageBox").show();
var fun = function(){
appendBottomItem();
}
setTimeout(fun,1000);
}
});
}

function pbLoadingFun(bln)
{
if(bln)
$("#pbLoading").show();
else
$("#pbLoading").hide();
}

function ShowUserClickShare(result)
{
if($("#share_item_" + result.share_id).length > 0)
{
var thisshare = $("#share_item_" + result.share_id);
$('#book_list').prepend(thisshare);
}
else
$('#book_list').prepend(result.html);
}

function BookUpdateUserFollow(obj,result)
{
var parent = $(obj).parent();
if(result.status == 1)
{
parent.html('<span class="followed">已关注</span>');
}
}
</script>	</div>
<div class="clear"></div>
<div id="foot_wrap">
<div id="foot" class="fm960 mt10">
<div class="fl"><div class="links fl"><b>网站</b>
<ul></ul>
</div>
<div class="links fl"><b>团队</b>
<ul></ul>
</div>
<div class="links fl"><b>帮助</b>
<ul></ul>
</div>
</div>
<div class="fr foot_right">     
 <div class="logos fl">
<a href="/fanwe/index.php?action=index"><img class="logo fl" src="/fanwe/./foot_logo.gif" /></a>
</div>

</div>
</div>
<div class="blank20 mt10"></div>
<div class="copyright"><p>
	DIYgw购物分享系统 系统版本：v1.1 版权所有&copy; DIYgw</p>
</div>
</div>
<div id="back2top"><a href="#"><span class="arrow">▲</span>回顶部</a></div>
<div id="USER_INFO_TIP" style="display:none;">
<div class="tip_info">
<img class="avatar" alt="" src="./tpl/images/loading_60.gif">
<div>
<p><a href="#">&nbsp;</a></p>
<p>获取用户信息...</p>
<p>&nbsp;</p>
</div>
</div>
<div class="tip_toolbar">&nbsp;</div>
<div class="tip_arrow"></div>
</div>
</body>
<script src="./public/data/tpl/js/2eb8d847fc38f7777e9a73469eaa3fbc.js" type="text/javascript" defer="true"></script><script src="./public/js/jquery.masonry.js" type="text/javascript"></script>
<!--dynamic getScript--><script type="text/javascript">
jQuery(function($){
$(".lazyload").lazyload({"placeholder":"./tpl/images/lazyload.gif"});
});
</script>
</html>